.category-header {
  position: relative;
  width: 100%;
  height: 50vh;
  if hexo-config('color_scheme.common.headerMenuTransparent') {
    height: 60vh;
  }
  if hexo-config('categoryDetail.full') {
    height: 100vh;
  }
  overflow: hidden;
  background-size: cover; 
  background-position: center center;
  background-color: $color-primary;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: $color-inner;
  .category-header-title {
    z-index: 2;
    font-size: 2.5rem;
    font-family: MV Boli;
  }
  .category-header-desc {
    z-index: 2;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.4em;
    font-family: 'Architects Daughter', cursive!important;
    color: #fff; 
    min-height: 1.4em;
  }
  .mask-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.2;
    z-index: 1;
  }
}
.category-video {
  width: 100%;
  height: 100vh;
  color: $color-inner;
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .video-header-title {
    z-index: 2;
    font-size: 2.5rem;
    font-family: MV Boli;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .video-header-desc {
    z-index: 2;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.4em;
    font-family: 'Architects Daughter', cursive!important;
    color: #fff; 
    min-height: 1.4em;
    position: absolute;
    left: 50%;
    top: calc(50% + 50px);
    transform: translate(-50%, -50%);
  }
  .mask-box {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.2;
    z-index: 1;
  }
}

@media (min-width: 992px) {
  if hexo-config('categoryDetail.video') {
    .category-video {
      display: block;
    }
    .category-header {
      display: none;  
    }
  } else {
    .category-video {
      display: none;
    }
    .category-header {
      display: flex;  
    }
  }
  
}
@media (max-width: 992px) {
  .category-video {
    display: none;
  }
  .category-header {
    display: flex;  
  }
}
.category {
  min-height: calc(100vh - 60px);
  padding-bottom: 20px;
  .category-name {
    display: flex;
    justify-content: center;
    .name {
      display: inline-block;
      background-color: red;
      margin-top: 20px;
      min-width: 30%;
      padding: 10px 20px;
      text-align: center;
      font-size: 1.6em;
      color: #273849;
      border-radius: 10px;
    }
  }
}